﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
using DataAccess.Classes;

public partial class Catalog : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    { 
        if (!IsPostBack)
        { 
            PopulateControls();
        }
    } 
    private void PopulateControls()
    {
        string maHangHoa = Request.QueryString["MaThuongHieu"] ?? "";
        ThuongHieu data = ThuongHieu.Single(maHangHoa); 
        if (data != null) 
        {
            lblTitle.Text = data.TenThuongHieu;
            //lblDes.Text = data.TenThuongHieu; 
        }
    }
}